#include <iostream>
#include <string>

using std::cout;
using std::endl;
using std::string;

void test()
{
    string s1("hello");
    string s2("你好");
    string s3("你h好e");
    cout << "s1.size() = " << s1.size() << endl;
    cout << "s2.size() = " << s2.size() << endl;
    cout << "s3.size() = " << s3.size() << endl;
    cout << "s1[0] = " << s1[0] << endl;
    /* cout << "s3[0] = " << s3[0] << endl; */
    cout << "s3[0] = " << s3.substr(0, 5) << endl;
}

int main(int argc, char *argv[])
{
    test();
    return 0;
}

